package com.yss.kettle.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.EasyExcel;
import com.yss.common.core.utils.easyexecl.IntegerConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yss.common.core.web.domain.BaseEntity;

/**
 * 作业任务信息对象 kettle_job_task
 *
 * @author yss
 * @date 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("kettle_job_task")
public class JobTask extends BaseEntity {

    /**
     * 主键
     */
    @ExcelIgnore
    @TableField("ID")
    private String id;

    /**
     * 采集分类编码
     */
    @ExcelProperty(value = "采集分类编码")
    @TableField("CATEGORY_TYPE")
    private Integer categoryType;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    @TableField("NAME")
    private String name;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = IntegerConverter.class)
    @EasyExcel(readConverterExp = "1=正常,2=停用")
    @TableField("STATUS")
    private Integer status;

}
